package com.mapper;

import com.entity.Bank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface BankMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteMore(Integer[] ids);

    int insert(Bank record);

    int insertSelective(Bank record);

    Bank selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Bank record);

    int updateByPrimaryKey(Bank record);

    @Select("select * from Bank")
    List<Bank> selectBankList();

    @Select("select count(id) from bank")
    int getBankCount();

    List<Bank> selectBankListByPage(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize);

    int getBankCountByCondition(Map params);

    List<Bank> selectBankByCondition(Map params);

    int updateBankById(Bank bank);

}